package beavers.studio.golfberry.screens;

import beavers.studio.golfberry.model.GolfBerryData;
import net.rim.device.api.system.Bitmap;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.LabelField;

public class HomeScreen extends GolfScreen {

	public HomeScreen() {
		//Super
		super(GolfScreen.ID.HOME);
		
		//Create logo
		add(new BitmapField(Bitmap.getBitmapResource("logo.png"), FIELD_HCENTER));
		
		//Read data
		GolfBerryData Data = new GolfBerryData();
		
		//Display
		add(new LabelField(""));
		add(new LabelField(Data.getLocation(), FIELD_HCENTER | FIELD_VCENTER));
		add(new LabelField(Data.getDate(), FIELD_HCENTER));
		add(new LabelField(""));
		add(new LabelField("Tee off: " + Data.getTeeOff() + " WIB", FIELD_HCENTER));
	}
}
